<%
dim strBrowserTest
dim strReferrer
dim strTempUser
dim strstrFlag
dim strFlag

'check if the user has IE 5, if they don't, redirect them to the browsererror.asp page

'If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 5") then
'	strBrowserTest = "true"
'else
'	strBrowserTest = "false"
'end if

'if strBrowserTest = "false" then
'	Response.Redirect ("../errorhandling/browsererror.asp")
'end if	


'if the user is not logged in, redirect them to the login page

'strFlag is an option to say that the user is going to use an option for the first time.  This keeps session variables from messing up different forms.

if strFlag = "new" then

	strTempUser = session("KeyTaxUser")
	
	Session.Contents.RemoveAll()
	
	session("KeyTaxUser") = strTempUser
	
end if


If session("KeyTaxUser") = "" Then
	Response.Redirect "../homepage/default.asp?strLogoutReason=1"
End If

%>